package service.impl;

import bean.pojo.GdUser;
import dao.GdUserMapper;
import org.springframework.stereotype.Service;
import service.GdUserService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GdUserServiceImpl implements GdUserService {

    @Resource
    private GdUserMapper gdUserMapper;

    public int insert(GdUser pojo)throws Exception{
        return gdUserMapper.insert(pojo);
    }

    public int insertList(List< GdUser> pojos)throws Exception{
        return gdUserMapper.insertList(pojos);
    }

    public List<GdUser> select(GdUser pojo)throws Exception{
        return gdUserMapper.select(pojo);
    }

    @Override
    public GdUser selectByName(String nickname)throws Exception {
        return gdUserMapper.selectByName(nickname);
    }

    public int update(GdUser pojo)throws Exception{
        return gdUserMapper.update(pojo);
    }

}
